from django.contrib.auth.models import Permission
from django.shortcuts import render

# Create your views here.
from rest_framework.generics import GenericAPIView

from common.views import ListModel
from permission.serializers import PermissionSerializer


class PermissionBase(GenericAPIView):
    queryset = Permission.objects.all()
    serializer_class = PermissionSerializer
    Model = Permission


class PermissionList(PermissionBase, ListModel):
    pass